package com.zlp.mybatisplus.mybatisplus.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 阶梯模板
 * </p>
 *
 * @author zhulaiping
 * @since 2022-01-25
 */
@TableName("bcrm_award_ladder_template")
public class AwardLadderTemplate extends Model<AwardLadderTemplate> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private String id;

    /**
     * 奖励模板id
     */
    @TableField("award_template_id")
    private String awardTemplateId;

    /**
     * 奖品id
     */
    @TableField("award_prize_id")
    private String awardPrizeId;

    /**
     * 触发瓶数
     */
    @TableField("trigger_count")
    private Integer triggerCount;

    /**
     * 当前阶段
     */
    private Integer stage;

    /**
     * 1: 红包 2:积分 3:实物 4:虚拟 5:抽奖
     */
    private Integer type;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;

    /**
     * 删除时间
     */
    @TableField("deleted_at")
    private Date deletedAt;

    /**
     * 修改时间
     */
    @TableField("updated_at")
    private Date updatedAt;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getAwardTemplateId() {
        return awardTemplateId;
    }

    public void setAwardTemplateId(String awardTemplateId) {
        this.awardTemplateId = awardTemplateId;
    }
    public String getAwardPrizeId() {
        return awardPrizeId;
    }

    public void setAwardPrizeId(String awardPrizeId) {
        this.awardPrizeId = awardPrizeId;
    }
    public Integer getTriggerCount() {
        return triggerCount;
    }

    public void setTriggerCount(Integer triggerCount) {
        this.triggerCount = triggerCount;
    }
    public Integer getStage() {
        return stage;
    }

    public void setStage(Integer stage) {
        this.stage = stage;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
    public Date getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(Date deletedAt) {
        this.deletedAt = deletedAt;
    }
    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AwardLadderTemplate{" +
        "id=" + id +
        ", awardTemplateId=" + awardTemplateId +
        ", awardPrizeId=" + awardPrizeId +
        ", triggerCount=" + triggerCount +
        ", stage=" + stage +
        ", type=" + type +
        ", createdAt=" + createdAt +
        ", deletedAt=" + deletedAt +
        ", updatedAt=" + updatedAt +
        "}";
    }
}
